﻿CollectSourceFiles(${CMAKE_CURRENT_SOURCE_DIR} PRIVATE_SOURCES)
GroupSources(${CMAKE_CURRENT_SOURCE_DIR})

set(PROTOBUF_IMPORT_DIRS ${Protobuf_INCLUDE_DIRS})
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS options.proto)
list(APPEND PRIVATE_SOURCES ${PROTO_SRCS} ${PROTO_HDRS})

add_library(server STATIC ${PRIVATE_SOURCES})
target_include_directories(server PRIVATE ${CMAKE_CURRENT_BINARY_DIR} PUBLIC  ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(server PRIVATE emoney-core-interface PUBLIC cfg drogon base spdlog proto)
set_target_properties(server PROPERTIES FOLDER "framework")
